// Fill out your copyright notice in the Description page of Project Settings.


#include "Character/AuraEnemy.h"

#include "Aura/Aura.h"
#include "UObject/FastReferenceCollector.h"

AAuraEnemy::AAuraEnemy()
{
	/*设置碰撞响应到通道:可见性,块碰撞*/
	GetMesh()->SetCollisionResponseToChannel(ECC_Visibility,ECR_Block);		
}

void AAuraEnemy::HighLightAction()
{
	// bHighLighted = true;
	GetMesh()->SetRenderCustomDepth(true);					//渲染自定义深度
	GetMesh()->SetCustomDepthStencilValue(CUSTOM_DEPTH_RED);		//设置自定义深度模板值
	Weapon->SetRenderCustomDepth(true);
	Weapon->SetCustomDepthStencilValue(CUSTOM_DEPTH_RED);
}

void AAuraEnemy::UnHighLightAction()
{
	// bHighLighted = false;
	GetMesh()->SetRenderCustomDepth(false);
	Weapon->SetRenderCustomDepth(false);
}
